[paket]
tanim   = Standart ML Derleyicisi
paketci = milisarge
grup    = geliştirme
url     = http://mlton.org
arsiv   = $isim-on-$surum-release

[gerek]
derleme = 
calisma =

[kaynak]
1       = https://github.com/MLton/mlton/archive/on-$surum-release.tar.gz
2       = https://github.com/MLton/mlton/releases/download/on-20210117-release/mlton-20210117-1.amd64-linux-glibc2.31.tgz

[sha256]
1       = d7f69cc62956e5efac9183638bac04471182b8ee341ed2185760a69cc56c0c3e

[derle]
betik   = sed 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' -i runtime/cenv.h
betik   = export CFLAGS="$CFLAGS -fPIC"
betik   = export COMPILE_ARGS="-codegen c -cc-opt '-fPIC'"
betik   = mkdir build
betik   = cp ${SRC}/mlton-20210117-1.amd64-linux-glibc2.31/lib/mlton/mlton-compile build/lib/
betik   = export PATH=${PATH}:${SRC}/mlton-20210117-1.amd64-linux-glibc2.31/bin
betik   = make all

[pakur]
betik   = make PREFIX=/usr DESTDIR="$PKG" install
